package com.ferryc.modules.sys.entity.param;

import org.hibernate.validator.constraints.NotBlank;

import com.ferryc.commons.entity.DataEntity;
import com.ferryc.constant.ValidatorConstant;
import com.ferryc.modules.sys.entity.SysUser;

@SuppressWarnings("serial")
public class UserPassdParam extends DataEntity<UserPassdParam> {

	private String oldPassword;

	@NotBlank(message = ValidatorConstant.ERROR_PSWD)
	private String newPassword;
	private String verifyPassword;

	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getVerifyPassword() {
		return verifyPassword;
	}

	public void setVerifyPassword(String verifyPassword) {
		this.verifyPassword = verifyPassword;
	}

	public SysUser toSysUsers() {
		SysUser po = new SysUser();
		po.setId(this.id);
		po.setPassword(this.newPassword);
		return po;
	}

}
